﻿using DataChangeTools.WebApi.DAL.DALs;
using DataChangeTools.WebApi.IRepository.IRepositorys;
using DataChangeTools.WebApi.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using static Dapper.SqlMapper;

namespace DataChangeTools.WebApi.Repository.Repositorys
{
    public class BaseVsersionRepository : BasicsRepository, IBaseVersionRepository

    {
        public BaseVsersionRepository()
        {
            thisDal = new BaseVersionDAL();
        }

        public BaseVersionEntity? GetLastVserionInfo()
        {
            var thisDalType = thisDal?.GetType();
            MethodInfo method = thisDalType.GetMethod("GetLastVserionInfoDAL");
            return method.Invoke(thisDal, null);
        }
    }
}
